import { concat, mergeWith } from 'lodash';
import { FrameworkLifeCycles } from '../interfaces';
import getRuntimePublicPathAddOn from './runtimePublicPath';
import getEngineFlagAddon from './engineFlag';
export default function getAddOns(global, publicPath) {
  return mergeWith({}, getEngineFlagAddon(global), getRuntimePublicPathAddOn(global, publicPath), (v1, v2) => concat(v1 ?? [], v2 ?? []));
}